import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";

// 将所有的图标都注册成全局组件
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
// 引入全局初始化样式
import "normalize.css";

import "@/styles/base.scss";
// 导入饿了么全局样式
import "element-plus/dist/index.css";

// 注册所有图标
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(createPinia());
app.use(router);

app.mount("#app");
